package de.fhkl.imst.i.cgma.raytracer;

import java.awt.Rectangle;

import de.fhkl.imst.i.cgma.raytracer.gui.IRayTracerImplementation;

public class RenderThread  implements Runnable 
{
	
	public Rectangle renderArea;
	public IRayTracerImplementation rayTracer;
	
	public RenderThread(Rectangle area, IRayTracerImplementation tracer)
	{
		renderArea = area;
		rayTracer = tracer;
	}

	@Override
	public void run() 
	{
		rayTracer.rayTraceArea(renderArea);
	}

}
